ABOUTDEVELOPERS |
SpatialStream® Code Examples
Parcels with SLD
When managing map layers, each layer's style definitions are contained in a separate xml file called an SLD, or Stylized Layer Descriptor. The SLD is an xml file that is used in GetMap requests and it contains the style parameters for a layer to be displayed on a map (color, opacity, angle, size). The example below shows how to display parcel lines through a Tile Layer and APN labels with an SLD. SLD | GetMap
layer = new Dmp.Layer.TileLayer("SS", "samplesite.dmp/ParcelTiles", {
minZoom:16,maxZoom:19 });map.overlayMapTypes.push(new google.maps.ImageMapType(layer)); layer = new Dmp.Layer.TileLayer("SS", "samplesite.dmp/Parcels", { sld:"samplesite.public.styles/ParcelLabels/Default.sld.xml",minZoom:16,maxZoom:20 });map.overlayMapTypes.push(new google.maps.ImageMapType(layer)); Run Sample Back To Index |